/**
 * 
 */
package com.onstar.cn.map.common;

/**
 * @author Qiying Gong
 *
 * @Created 2013-5-21
 */
public class ExceptionType {

	public static ExceptionType LESS_MIN_ROUTE_DIST = new ExceptionType(1000,"LESS_MIN_ROUTE_DIST");
	public static ExceptionType REVERSE_GEO_CODE_ERR = new ExceptionType(1001,"REVERSE_GEO_CODE_ERR");
	public static ExceptionType QUERY_OPTIONS_ERR = new ExceptionType(1002,"QUERY_OPTIONS_ERR");
	public static final ExceptionType POI_SEARCH_ERR = new ExceptionType(1003,"POI_SEARCH_ERR");
	public static final ExceptionType NEXT_PAGE_ERR = new ExceptionType(1004,"NEXT_PAGE_ERR");
	public static final ExceptionType ROUTE_SEARCH_ERR = new ExceptionType(1005,"ROUTE_SEARCH_ERR");
	
	public static final ExceptionType MAP_ERR = new ExceptionType(1006,"MAP_ERR");
	
	private int code;
	private String name;
	
	public ExceptionType(int code, String name){
		this.code = code;
		this.name = name;
	}

	/**
	 * @return the code
	 */
	public int getCode() {
		return code;
	}

	/**
	 * @param code the code to set
	 */
	public void setCode(int code) {
		this.code = code;
	}

	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}

	/**
	 * @param name the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}
	
	
}
